package com.kuang.dao ;

import com.kuang.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    //模糊查询
    List<User> getUserLike(String value);

    //获取全部用户
    List<User> getUserList();

    //根据id查询用户
    User getUserById(int id);

    User getUserById2(Map<String,Object> map);

    //插入
    int addUser(User user);
    //万能map
    int addUser2(Map<String,Object> map);

    //删除
    int deletUser(int id);

    //修改
    int updataUser(User user);

    //分页
    List<User> getUserByRowBounds();

}
